package org.oschina.api.user.mail.vo;

import org.oschina.Constants;
import org.oschina.api.user.user.vo.UserVo;
import org.oschina.bean.BaseBean;
import org.oschina.helper.query.annotation.Cache;
import org.oschina.helper.query.annotation.Table;

@Table(name=Constants.DB_USER_MAIL)
@Cache(name=Constants.CACHE_USER_MAIL,timeout=Constants.TIMEOUT_USER_MAIL)
public class UserMailVo extends BaseBean {

	private Integer id;
	private String title;
	private String content;
	private UserVo author;
	private UserVo target;
	private Boolean read;
	private Integer role;
	private Integer type;
	private Long create_time;
	
	public Integer getRole() {
		return role;
	}
	public void setRole(Integer role) {
		this.role = role;
	}
	public Boolean getRead() {
		return read;
	}
	public void setRead(Boolean read) {
		this.read = read;
	}
	public Integer getId() {
		return id;
	}
	public String getTitle() {
		return title;
	}
	public String getContent() {
		return content;
	}
	public UserVo getAuthor() {
		return author;
	}
	public UserVo getTarget() {
		return target;
	}
	public Integer getType() {
		return type;
	}
	public Long getCreate_time() {
		return create_time;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public void setAuthor(UserVo author) {
		this.author = author;
	}
	public void setTarget(UserVo target) {
		this.target = target;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public void setCreate_time(Long createTime) {
		create_time = createTime;
	}
}